#!/bin/bash

# 加载配置
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${SCRIPT_DIR}/config.sh"

# 检查权限和环境
check_root
check_install_env

# 停止所有服务
info "停止所有微服务..."
"$INSTALL_FULL_PATH/service/micro_stop.sh"

# 等待所有服务完全停止
sleep 5

# 启动所有服务
info "启动所有微服务..."
"$INSTALL_FULL_PATH/service/micro_start.sh"

exit $? 